import './index.css'
import CrudTable from './CrudTable/index.js'
import CrudTableData from './CrudTableData/index.js'
import CrudTablePagination from './CrudTablePagination/index.js'
import CrudTableHeader from './CrudTableHeader/index.js'
import CrudTableSearch from './CrudTableSearch/index.js'
import CrudTableColumn from './CrudTableColumn/index.js'
import CrudTableAction from './CrudTableAction/index.js'
import CrudTableBtnAdd from './CrudTableBtnAdd/index.js'
import CrudTableHandler from './CrudTableHandler/index.js'
import CrudTableBtnPreview from './CrudTableBtnPreview/index.js'
import CrudTableBtnEdit from './CrudTableBtnEdit/index.js'
import CrudTableBtnDel from './CrudTableBtnDel/index.js'
import CrudTableDialog from './CrudTableDialog/index.js'

export { default as CrudTable } from './CrudTable/index.js'
export { default as CrudTableData } from './CrudTableData/index.js'
export { default as CrudTablePagination } from './CrudTablePagination/index.js'
export { default as CrudTableHeader } from './CrudTableHeader/index.js'
export { default as CrudTableSearch } from './CrudTableSearch/index.js'
export { default as CrudTableColumn } from './CrudTableColumn/index.js'
export { default as CrudTableAction } from './CrudTableAction/index.js'
export { default as CrudTableBtnAdd } from './CrudTableBtnAdd/index.js'
export { default as CrudTableHandler } from './CrudTableHandler/index.js'
export { default as CrudTableBtnPreview } from './CrudTableBtnPreview/index.js'
export { default as CrudTableBtnEdit } from './CrudTableBtnEdit/index.js'
export { default as CrudTableBtnDel } from './CrudTableBtnDel/index.js'
export { default as CrudTableDialog } from './CrudTableDialog/index.js'

const comps = [
  CrudTableData,
  CrudTablePagination,
  CrudTableHeader,
  CrudTableSearch,
  CrudTableColumn,
  CrudTableAction,
  CrudTableBtnAdd,
  CrudTableHandler,
  CrudTableBtnPreview,
  CrudTableBtnEdit,
  CrudTableBtnDel,
  CrudTableDialog
]

export default {
  install(app, options) {
    app.use(CrudTable, options)
    comps.forEach(app.use, app)
  },
}
